package com.zyz.E_面向对象.H_内存分析.简单;

/**
 * @author: vick
 * @Date: 2025/3/14
 * @Description:
 * @version: 1.0
 */
public class PersonTest3 {
    public static void main(String[] args) {
        Person p1 = new Person();
        Person p2 = new Person();
        p1.name = "vick";
        p1.age = 25;

        p2.name = "tom";
        p2.age = 19;

        p2 = p1;
        p2.age = 80;

        p1.print();

    }


}
